<template>
	<view>
		<view class="header">
			<u-search placeholder="搜索你想要去的电站/目的地" v-model="keyword" @custom="search()"></u-search>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				keyword: ""
			}
		},
		methods: {
			search() {
				wx.choosePoi({
				  success: function (res) {
				    console.log(res)
				  },
				  fail: function (err) {
				    console.error(err)
				  },
				  complete: function () {
				    console.log('选择位置操作完成')
				  },
				})
			}
		}
	}
</script>

<style>
.header {
	    position: fixed;
	    top: 30rpx;
	    left: 80rpx;
	    width: 80%;
	    z-index: 999;
	    background-color: #fff;
	  }
</style>
